package day02;

public class DataTypeCastDemo {
    public static void main(String[] args) {
       /*
        int a = 5;
        long b = a;
        int c = (int)b;

        long e = 5;
        double f = 5;
        System.out.println(f);

        long g = 10000000000L;
        int h = (int)g;
        System.out.println(h);
        double i = 45.654;
        int k = (int)i;
        System.out.println(k);
        */


       byte a1 = 5;
       byte a2 = 6;
       byte a3 = (byte)(a1+a2);
       System.out.println(a3);

       System.out.println(2+2);
       System.out.println(2+'2');
       System.out.println('2'+'2');
       System.out.println('2');

       int a = '郭';
       System.out.println(a);

       char b = 33333;
       System.out.println(b);
    }
}
